package org.jgs1904.pojo;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import javax.annotation.Resource;

/**
 * @author: 默苍璃
 * @date: 2022-01-03 12:19
 */
public class People {

    @Resource(name = "cat1")
    private Cat cat;

    @Autowired(required = false)
    @Qualifier(value = "dog1")
    private Dog dog;

    private String name;


    public Cat getCat() {
        return cat;
    }

    public void setCat(Cat cat) {
        this.cat = cat;
    }

    public Dog getDog() {
        return dog;
    }

    public void setDog(Dog dog) {
        this.dog = dog;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
